package com.shimao.celnet.payment.util;

/**
 * Created by ensure.xu on 2017/11/6.
 */
public class FinalUtil {
    // *******接口Header Final star***************************************
    public static final String CONTENT_TYPE = "application/json";
    public static final String HEADER_CONTENT_TYPE = "Content-Type";
    public static final String HEADER_METHOD = "method";
    public static final String HEADER_APP_KEY = "app_key";
    public static final String HEADER_TIMESTAMP = "timestamp";
    public static final String HEADER_INTERFACE_ID = "integration_id";
    public static final String HEADER_SIGN = "sign";
    public static final String INTER_FACE_USER_ID = "interface-user-guid";
    public static final String INVLID_SELLER_SHIMAO = "shimao"; //发票流水号标识
    public static final int INVLID_SELLER_LENGTH = 20;//发票流水数字长度
    public static final String INVLID_SELLER_ZIRO = "00000000000000000000";
    public static final Long HEADER_TIMESTAMP_VALIABLE_TIME = 600000L;//10分钟
    // *******接口Header Final end***************************************

    // *******在线支付：接口参数 Final star***************************************
    public static final String PAY_STATUS_SUSCSS = "0";
    public static final String PAY_STATUS_FAILUE = "1";
    public static final String PAY_STATUS_INQUIRE = "2";
    public static final String PAY_NEED_STATUS_YES = "0";
    public static final String PAY_NEED_STATUS_NO = "1";
    public static final String BANKCARD_UNBOUND_STATUS = "1"; //解绑
    public static final String BANKCARD_BIND_STATUS = "0";//绑定
    public static final String PAY_STATUS_EXCEPTION = "4";
    public static final String PAY_REFUND_SUCCESS = "0";
    public static final String PAY_REFUND_FAILUE = "1";
    public static final String TL_HANDLER_PKGS = "java.protocol.handler.pkgs";
    public static final String TL_NET_SSL = "javax.net.ssl";
    // *******在线支付：接口参数 Final end***************************************

    // *******税控开票：接口参数 Final star***************************************
    public static final String INVOICE_HEAD_TYPE_PERSON = "0";//个人抬头类型
    public static final String INVOICE_BULE = "blue";//蓝票
    public static final String INVOICE_RED = "red";//红票
    public static final String INVOICE_IVIL_CODE = "1";//作废
    public static final String INVOICE_TYPE_CODE_026 = "026";//电子发票
    public static final String INVOICE_TYPE_BULE = "0";//蓝票
    public static final String INVOICE_TYPE_RED = "1";//红票
    public static final String INVLID_PRICE_TAX_MARK = "1"; //发票含税标识
    public static final String INVLID_RED_PART = "0"; //部分红冲
    public static final String INVLID_FLG_DEFAULT = "0"; //发票作废标记
    public static final String INVLID_FLG_PRINT = "0"; //发票打印标记
    public static final String INVOICE_SUCCESS = "0";//开票成功
    public static final String INVOICE_STATUS_1 = "1";//外部开票请求
    public static final String INVOICE_IMMEDIATE_FLG = "1";//外部立即开票请求
    public static final String INVLID_RED_APPLY = "1"; //申请开红票
    public static final String INVLID_RED_SUCCESS= "0"; //申请开红票
    public static final String INVOICE_RED_FLG = "1";//未红冲
    // *******税控开票：接口参数 Final end***************************************

    // *******加密 Final star***************************************
    public static final String ALGORITHM_NAME = "md5";
    public static final int HASH_INTERATIONS = 2;
    public static final String USER_PASSWORD = "shimao123456";
    // *******加密 Final end***************************************

    // *******page Final star***************************************
    public static final int PAGE_Fist_NUM = 1;
    public static final int PAGE_LENGHT = 20;//每页显示数据条数
    public static final String ERROR_CODE = "errorCode";
    public static final String ERROR_MSG = "errorMsg";
    public static final String VALID_MSG = "_errorMsg";//页面验证错误
    public static final String SAVE_SCU_0 = "0";//处理成功
    public static final String SAVE_SCU_4 = "4";//处理成功，左侧菜单刷
    public static final String SAVE_ERR_1 = "1";//处理失败
    public static final String SAVE_ERR_2 = "2";//数据验证失败
    public static final String PAGE_ADD_SCU = "新增成功！";
    public static final String PAGE_ADD_ERR = "新增失败！";
    public static final String PAGE_DEL_SCU = "删除成功！";
    public static final String PAGE_DEL_ERR = "删除失败！";
    public static final String PAGE_UPD_SCU = "修改成功！";
    public static final String PAGE_UPD_ERR = "修改失败！";
    public static final String PAGE_SEL_SCU = "查询成功！";
    public static final String PAGE_SEL_ERR = "查询失败！";
    // *******page Final end***************************************

    // *******启用/删除 Final star***************************************
    public static final String ENABLE = "1";
    public static final String DISABLE = "0";

    public static final String CODE_NAME_TYPE_NULL = "";//基本类型
    public static final String CODE_NAME_NAME_NULL = "--请选择--";
    public static final String CODE_NAME_NAME = "--root:参数基本类型--";
    public static final String CODE_NAME_ROOT_TYPE = "root_type";//基本类型
    public static final String CODE_NAME_BUSINESS_TYPE = "business_type";//业务类型
    public static final String CODE_NAME_PAY_TYPE = "pay_type";//支付方式
    public static final String CODE_NAME_PAY_STATUS = "pay_status";//支付状态
    public static final String CODE_NAME_STR_BOOLEAN = "str_boolean";//逻辑状态
    public static final String CODE_NAME_LOG_STATUS = "log_status";//接口日志状态
    public static final String CODE_NAME_REFUND_STATUS = "refund_status";//退款状态
    public static final String CODE_NAME_INVOICE_TYPE = "invoice_type";//开票类型
    public static final String CODE_NAME_INVOICE_KIND = "invoice_kind";//发票种类
    public static final String CODE_NAME_INVOICE_NO = "invoice_no";//开票流水号
    public static final String CODE_NAME_INVOICE_STATUS = "invoice_status";//开票状态
    public static final String CODE_NAME_GOODS_CODE = "goods_code";//商品最多编码
    public static final String CODE_NAME_INVOICE_KEY_BW = "invoice_key_bw";//百望key值
    public static final String CODE_NAME_INVOICE_SECRET_BW = "invoice_secret_bw";//百望秘钥
    public static final String CODE_NAME_INVOICE_PASSWORD_BW = "invoice_password_bw";//百望密码
    public static final String CODE_NAME_INVOICE_URL_BW = "invoice_url_bw";//百望url
    public static final String CODE_NAME_INVOICE_USER_BW = "invoice_user_bw";//百望账户
    public static final String CODE_NAME_INVOICE_SALT_BW = "invoice_salt_bw";//百望盐值
    public static final String CODE_NAME_INVOICE_SIGNATURE_BW = "invoice_sign_bw";//百望签名
    public static final String CODE_NAME_INVOICE_POST_PARK_URL = "post_park_url";//百望签名

    //权限取得
    public static final String PERMISSION_TYPE_1 = "1";
    public static final String PERMISSION_TYPE_2 = "2";
    public static final String PERMISSION_TYPE_9 = "9";
    public static final String PERMISSION_MENU_BIAS = "/";
    public static final String PERMISSION_MENU_MID = "-";
    public static final String PERMISSION_MENU_DOW = "_";
    public static final String PERMISSION_MENU_URL = "/list";//根据条件，分页列表查询
    public static final String[][] PERMISSION_BUTTON =
            new String[][]{{"-详情", "/info", "-01"}, {"-新增", "/add", "-02"}, {"-修改", "/edit", "-03"}, {"-删除", "/del", "-04"}
                    , {"-上传", "/upload", "-05"}, {"-下载", "/download", "-06"}, {"-打印", "/print", "-07"}};

    public static final String ROLE_ROOT = "用户角色";
    public static final String PERMISSION_ROOT = "角色权限";
    public static final String RETURN_APP_INTERFACE_ROOT = "异步接口";

    // *******通联支付静态参数 Final star***************************************
    public static final String WEChAT_PAY_TYPE = "W03";
    public static final String ALIPAY_PAY_TYPE = "A01";
    public static final String CUP_PAY_TYPE = "A03";
    public static final String PAY_VERSION = "11";
    // *******通联支付静态参数 Final end***************************************

    /******************************支付交易返回KEY Final star****************************************/
    public static  final  String  RETCDE = "retcode";  //交易成功
    public static  final  String  TRXSTATUS = "trxstatus";  //交易状态
    public static  final  String  ERRMSG = "errmsg";  //错误原因
    public static  final  String  THPINFO = "thpinfo";  //交易透传信息
    /********************************Final end**************************************/

    public static final String ALLIN_SUCCESS_CODE = "0000";
    public static final String SIGN_PAYMENT_ID = "paymentId";
    public static final String SIGN_TRXAMT = "trxamt";
}
